package com.atguigu.schedule.service.impl;

import com.atguigu.schedule.dao.SysScheduleDao;
import com.atguigu.schedule.dao.impl.SysScheduleDapImpl;
import com.atguigu.schedule.pojo.SysSchedule;
import com.atguigu.schedule.service.SysScheduleService;

import java.util.List;

public class SyscheduleServiceimpl implements SysScheduleService {
    private SysScheduleDao sysScheduleDao = new SysScheduleDapImpl();

    @Override
    public List<SysSchedule> findItemListByUid(int uid) {
        return sysScheduleDao.findItemListByUid(uid);
    }

    @Override
    public void addDefaultSchedule(int uid) {
        sysScheduleDao.addDefault(uid);
    }

    @Override
    public void updateSchedule(SysSchedule schedule) {
        sysScheduleDao.updateSchedule(schedule);
    }

    @Override
    public void deleteSchedule(int sid) {
        sysScheduleDao.deleteSchedule(sid);

    }
}
